Please have a conversation with your group (DO NOT check your notes quite yet, please). And list as many of our "BEST PRACTICES" from last week that you can come up with.
Consider the following short script in SNAP... please turn to the person next to you and describe what that code does.
1) Take a moment to identify the 'system variable' in the program
2) Explain to your partner why that term is a "SYSTEM" variable
═══════════════════════════
ANY time that you use the "ask" block, SNAP will prompt your user to input data from the keyboard.
ANYthing that your user types in will be saved in the SYSTEM VARIABLE named "answer"
More generally, a VARIABLE is a place holder, or better yet a bucket that holds data inside SNAP until your program is ready to use it.
Variables are one of the most important aspects of computer program.
Take a look at THIS somewhat more 'user friendly' code:

═══════════════════════════
The
command is particularly helpful in communicating to your user. You can put text in each of the white squares (those are actually variables themselves since they act as data buckets to hold the information that you type in there).
- You can put the
system variable in one of those boxes
- You can type in words or phrases into each of those boxes
- you can put your own variables in there too (of course you don't know how to create your own variable....yet)
═══════════════════════════
Have a conversation with your group and suggest what the output of that code will be.
Now please suggest a reason why I'm saying that code is more 'user friendly'.
Do you agree or disagree? Why?
- Now please write that code in SNAP but put in your OWN values when you use the
command
- Make sure that it works
═══════════════════════════
Here's a script that is somewhat more complicated:

Please work with your team to reproduce this program a brand new script in snap:
- You'll have to figure out how to create your own variable
- You'll also have to figure out how to use the
operator
- Save the program as logon01
- Make a copy as logon01_SAFE and save that
- Go back to work on logon01 (note that when you make a backup SNAP assumes you want to continue working on the backup, NOT the original)
If time permits, we'll practice creating more variables, using the equal operator (
) and the join operator (
)